<template>
	
		<view class="web-info" >
		  <web-view @message="getMessage"  v-if="webViewData.src" :src="webViewData.src"></web-view>
		</view>
</template>
<script>
export default {
  data() {
    return {
	 webViewData: this.$getStorage('webViewData')
    }
  },
   methods: {
  	getMessage(e) {
		// const data = {
		// 	id: this.$getStorage("houseId"),
		// 	lat: '',
		// 	lng: ''
			
		// }
		// this.$http.setLat().then(res =>{
			
		// });
  	},

  	
  },
  onUnload(options) {
	  if(this.webViewData.backUrl && this.webViewData.backUrl == '/pages/index/index') {
		  uni.switchTab({
		      url: '/pages/index/index'
		  });
	  }
  },
  mounted(option) {
	console.log(this.webViewData.src, 'this.src');
  }
}
</script>
<style>
	

</style>
